package com.b.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.b.dao.CoinRecordMapper;
import com.b.domain.CoinRecord;
import com.b.service.CoinRecordService;

import jakarta.annotation.Resource;
@Service
public class CoinRecordServiceImpl implements CoinRecordService{

    @Resource
    private CoinRecordMapper coinRecordMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return coinRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CoinRecord record) {
        return coinRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(CoinRecord record) {
        return coinRecordMapper.insertSelective(record);
    }

    @Override
    public CoinRecord selectByPrimaryKey(Integer id) {
        return coinRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(CoinRecord record) {
        return coinRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CoinRecord record) {
        return coinRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<CoinRecord> getAll() {
        return coinRecordMapper.getAll();
    }
}
